<?php

namespace app\model;

use think\Model;

class Project extends Model
{
    protected $name = 'goview_project';
    // 模型数据不区分大小写
    protected $strict = false;
    // 数据转换为驼峰命名
    protected $convertNameToCamel = true;

    public function getContentAttr($value, $data)
    {
        return ProjectData::where("project_id", "=", $value)->value('content');
    }
}